//
//  AppDelegate+LxRequest.m
//  aidongkeji
//
//  Created by 杜凌翔 on 16/10/27.
//  Copyright © 2016年 dlx. All rights reserved.
//

#import "AppDelegate+LxRequest.h"

@implementation AppDelegate (LxRequest)

-(AFHTTPSessionManager *)sharedHTTPSession{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [AFHTTPSessionManager manager];
        manager.requestSerializer.timeoutInterval = 10;
    });
    return manager;
}

-(AFURLSessionManager *)sharedURLSession{
    static dispatch_once_t onceToken2;
    dispatch_once(&onceToken2, ^{
        urlsession = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
    });
    return urlsession;
}

@end
